﻿using System;

namespace BizElements.Web
{
    /// <summary>Dummy properties. All return nulls which means that captions defined through search filter properties will be shown. SearchFilter requires a text-source instance. This is used as default.</summary>
    internal class NullSearchFilterTextSource : ISearchFilterTextSource
    {
        #region Singleton.

        private NullSearchFilterTextSource()
        {
        }

        static NullSearchFilterTextSource instance = new NullSearchFilterTextSource();

        public static NullSearchFilterTextSource GetInstance()
        {
            return instance;
        }

        #endregion

        #region Dummy properties. All return nulls.

        public string AddWithOrText { get { return null; } }
        public string InvertFilterText { get { return null; } }
        public string AnyWordOrPhraseText { get { return null; } }
        public string SearchButtonText { get { return null; } }
        public string ResetButtonText { get { return null; } }
        public string FindFilterButtonText { get { return null; } }
        public string SaveButtonText { get { return null; } }
        public string OpenPredefinedFilterText { get { return null; } }
        public string TextSearchModeDefaultCaption { get { return null; } }
        public string TextSearchModeBeginningOfTextCaption { get { return null; } }
        public string TextSearchModeAnywhereInTextCaption { get { return null; } }
        public string TextSearchModeExactMatchCaption { get { return null; } }
        public string IsNullText { get { return null; } }
        public string IsNullToolTip { get { return null; } }
        public string AnyWordOrPhraseToolTip { get { return null; } }
        public string AddWithOrToolTip { get { return null; } }
        public string InvertFilterToolTip { get { return null; } }
        public string ShowAdvancedOptionsCaption { get { return null; } }
        public string HideAdvancedOptionsCaption { get { return null; } }

        #endregion
    }
}